#include <vector>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <set>
using namespace std;

int main(int argc, char const *argv[])
{
    int n = 0;
  
    cin >> n;
  
    set <int> st_students;

    int h = 0;
    for (int i = 0; st_students.size() < n; ++i) 
    {
        h = rand()%1000 + 1;

        st_students.insert(h);
    }
    
    vector<int> vc_students;

    vc_students.assign(st_students.begin(), st_students.end());

    sort(vc_students.begin(), vc_students.end()); 


   for (int i = 0; i < st_students.size(); ++i) 
    {
       cout<<vc_students[i]<<endl;                 
    }
 
  
    return 0;
}